﻿using DapperExtensions;
using WMLogistics.Model;
using WMLogistics.Model.Response;
using WMLogistics_Dao;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WMLogistics.Service
{
    public class NoticeService
    {
        private NoticeDao dao = new NoticeDao();
        private CompanyNoticeDao cnDao = new CompanyNoticeDao();
        public PageData<wuliu_wlcompany_notice> GetPageList(IPredicate predicate, IList<ISort> sorts, int pageIndex, int pageSize)
        {
            return dao.GetPageList(predicate, sorts, pageIndex, pageSize);
        }

        public int Add(wuliu_notice notice)
        {
          
            return dao.Add(notice);

        }

        public wuliu_notice Get(int id)
        {
            return dao.Get(id);
        }
        public wuliu_wlcompany_notice GetWlNotice(int id)
        {
            return dao.GetWlNotice(id);
        }

        public bool DeleteNotice(wuliu_wlcompany_notice model)
        {
            return dao.DeleteNotice(model);
        }

    }
}
